import java.util.Arrays;

public class Demo2 {
    public static void main(String[] args) {
        int[] array = {1,2,3,4};
        transform(array);
        System.out.println(Arrays.toString(array));
    }
    public static void transform(int[] array) {
        for(int i = 0;i < array.length;i++) {
            array[i] = 2*array[i];
        }
    }
}
